﻿@model WebUI.Models.QizSubject

<table class="width">
    <tr>
        <th>
            随访项名称
        </th>
        <th>
            指标数据类型
        </th>
        <th>
            关联关系
        </th>
        <th>
        </th>
    </tr>
    @foreach (var item in Model.QizSubjectDefines)
    {
        <tr>
            <td>
                @Html.DisplayFor(model => item.QizItem.Title)
            </td>
            <td>
                @Html.DisplayFor(m=>item.QizItem.TypeRef.OptionTitle)
                                @if (item.QizItem.TypeRef.OptionValue == "4" || item.QizItem.TypeRef.OptionValue == "5")
                {
                    <text>:</text>@Html.DisplayFor(model => item.QizItem.EnumDefine.EnumName)
                }
            </td>
            <td>
                @Html.DisplayFor(model => item.QizItem.Department.DepName)
            </td>
            <td>
                @Ajax.ActionLink("修改", "SuiFangItem", new { ID = item.QizItemID }, new AjaxOptions() { LoadingElementId="OnLoadingSpan",UpdateTargetId = "dialogbox", OnComplete = "showDialog('随访项');", HttpMethod = "Get", InsertionMode = InsertionMode.Replace, OnFailure = "OnSiteError" })
                | @Ajax.ActionLink("删除", "DelSuiFangItem", new { ID = item.QizItemID }, new AjaxOptions() { LoadingElementId="OnLoadingSpan",UpdateTargetId = "SuiFangFormView", HttpMethod = "Get", InsertionMode = InsertionMode.Replace, OnFailure = "OnSiteError", Confirm = OnConfirmDel() })
            </td>
        </tr>
    }
</table>
           
           


